// components/tababr/tababr.js
const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    active: {
      type: String,
      value: ''
    },
  },
  /** 
   * 组件的初始数据 
   */
  data: {
    active: 0,
    list:[
      "/pages/pointsShop/pointsShop",
      "/pages/pointsShopCar/pointsShopCar", 
      "/pages/pointsShopOrder/pointsShopOrder",
    ]
  },
 
  /**
   * 组件的方法列表
   */
  methods: {
    changePage(e){
      this.setData({ active: e.detail });  
      wx.redirectTo({
        url: this.data.list[e.detail],
        fail:(err)=>{
          console.log(err)
        }
      })
    }
  },
}) 